package parse;

import java.util.*;

public class TableName_list{
	private List<TableName> TN_list = new ArrayList<TableName>();
	private int natrueJoin = 0;
//	private SFW son = null;
//	
//	public TableName_list(SFW son){
//		this.son = son;
//	}
	
	public TableName_list(TableName name, TableName_list TN_list){
		if(TN_list != null)
			this.TN_list = TN_list.TN_list;
		
		this.TN_list.add(name);
	}
	
	public TableName_list(TableName name, TableName_list TN_list, int nature){
		if(TN_list != null)
			this.TN_list = TN_list.TN_list;
		
		this.TN_list.add(name);
		this.natrueJoin = 1;
	}
	
	public List<TableName> GetTNList(){
		return this.TN_list;
	}
	
	public int GetNaturalJoinMark(){
		return this.natrueJoin;
	}
	
//	public SFW GetSubquery(){
//		return this.son;
//	}
}